Add boolean and array functions to check if the device has a sensor housing - #164
Conversation
SwiftLint found issuesWarnings
Generated by 🚫 Danger |
|
@dennisweissmann what do you think of this addition? |
|
Didn’t review the code, and this may not apply here, but note that the iPad Pro has a “sensor housing” that is contained in the notch of iPhone X but does not have a notch. |
|
So, do you think it should be renamed to “hasNotch”? Weird, since Apple calls it a sensor housing all over it’s developer docs while I haven’t seen references like that for iPad... |
|
Thanks for the mention @Zandor300, this triggered an email :) I like the addition :) with regards to the naming: I think I like “notch” better, this is the first time I heard the term sensor housing (but that’s not a good enough reason to discard the term if it’s the right one describing the property) - I’ll leave that up to you though :) in any case I’d remove the “A” in Thank you @Zandor300 for contributing🙏 This is great :) |
|
@dennisweissmann can't tell if you like or dislike the email notification caused by your mention. 🤔 I think keeping it as sensor housing is the best choice:
I will however rename the variable like you suggested. |
|
I like the mention, sorry for not making that clearer :) I don’t know why but github doesn’t send me emails when someone opens a PR or an issue, only direct mentions cause an email ... Alright, that seems reasonable to me, thanks for the rename and again for working on that 🎉 I’ll merge it but I can’t release it because I don’t have a MacBook right now ... I’m also in the process of transferring this repo to a colleague, and maybe she can trigger a release sooner than I can. Again, thank you for working on that, that’s great! :) 🙏🎉 |
I added an array of devices that feature a sensor housing (aka a notch) and a Boolean function that tells whether or not the current device features a sensor housing.